package cn.appsys.dao.info;

import cn.appsys.pojo.Info;
import org.apache.ibatis.annotations.Param;

import javax.annotation.Resource;
import java.util.List;

public interface InfoMapper {
    List<Info> getAppInfoList(@Param("softwareName")String softwareName,
                              @Param("status") Integer status,
                              @Param("flatformId") Integer flatformId,
                              @Param("categoryLevel1") Integer categoryLevel1,
                              @Param("categoryLevel2") Integer categoryLevel2,
                              @Param("categoryLevel3") Integer categoryLevel3,
                              @Param("devId") Integer devId,
                              @Param("from") Integer from,
                              @Param("pageSize") Integer pageSize);
    int getAppInfoCount(@Param("softwareName")String softwareName,
                              @Param("status") Integer status,
                              @Param("flatformId") Integer flatformId,
                              @Param("categoryLevel1") Integer categoryLevel1,
                              @Param("categoryLevel2") Integer categoryLevel2,
                              @Param("categoryLevel3") Integer categoryLevel3,
                              @Param("devId")Integer devId);
    Info getAppInfo(@Param("id")Integer id,@Param("APKName") String APKName);
    int save(Info info);
    int removeAppLog(@Param("id")Integer id);
    int update(Info info);
    int updateVersionId(@Param("versionId") Integer versionId,@Param("id") Integer id);
    int delApp(@Param("id")Integer id);
    int modify(Info info);
    int upStatus(@Param("status")Integer status,@Param("id")Integer id);
}
